package org.osforce.connect.service.message;

import org.osforce.connect.entity.message.Message;
import org.osforce.connect.entity.system.Project;
import org.osforce.spring4me.dao.Page;

/**
 *
 * @author gavin
 * @since 1.0.0
 * @create Feb 12, 2011 - 9:21:13 AM
 *  <a href="http://www.opensourceforce.org">开源力量</a>
 */
public interface MessageService {

	Message getMessage(Long messageId);

	void createMessage(Message message);

	void updateMessage(Message message);

	void deleteMessage(Long messageId);

	Page<Message> getMessagePage(Page<Message> page,
			Project project, String box);

	Long countMessages(Project project, Boolean read);

}
